package com.atkins.spring;

import java.util.List;

public class PostResponse {
	
	public class ValidationError{
		private String controlName;
		private String errorMessage;
		
		public String getControlName() {
			return controlName;
		}
		public void setControlName(String controlName) {
			this.controlName = controlName;
		}
		public String getErrorMessage() {
			return errorMessage;
		}
		public void setErrorMessage(String errorMessage) {
			this.errorMessage = errorMessage;
		}
	}
	
	public static String SUCCESS = "success";
	public static String FAILURE = "fail";
	
	private String status;
	private String message;
	private String newId;
	private List<ValidationError> validationErrors;
	
	public PostResponse(String status){
		this.status = status;
	}
	
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public String getNewId() {
		return newId;
	}
	public void setNewId(String newId) {
		this.newId = newId;
	}
	public List<ValidationError> getValidationErrors() {
		return validationErrors;
	}
	public void setValidationErrors(List<ValidationError> validationErrors) {
		this.validationErrors = validationErrors;
	}
}
